import Mock from 'mockjs';

let item = [{
		key: "/type/all",
		method: "get",
		param: {
			
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': [{
					"typeid": "TP202341",
					"name": "球速",
					'price': "10",
				},{
					"typeid": "TP202342",
					"name": "杀球",
					'price': "11",
				},{
					"typeid": "TP202343",
					"name": "打点",
					'price': "12",
				},{
					"typeid": "TP202344",
					"name": "综合测试",
					'price': "13",
				}]
			});
		}
	},
	{
		key: "/type/page",
		method: "get",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"typeid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"name": "@cword(6,9)",
						'price': "@integer(2,9)",
					}]
				}
			});
		}
	},
	{
		key: "/type/info",
		method: "get",
		prarm: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					"typeid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"name": "@cword(6,9)",
					'price': "@integer(2,9)",
				}
			})
		}
	},

	{
		key: "/type/info",
		method: "post",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/type/info",
		method: "put",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/type/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;